package com.founder.gateway.component.transport.netty.exception;

import org.setu.framework.exception.AbstractException;
import org.setu.framework.exception.SetuErrorCode;

@SuppressWarnings("serial")
public class NettyException extends AbstractException {
    public NettyException(String message) {
        super(message);
    }

    public NettyException(String message, int errorCode) {
        super(message, errorCode);
    }

    public NettyException(SetuErrorCode errorCode) {
        super(errorCode);
    }

    public NettyException(SetuErrorCode errorCode, String msg) {
        super(msg == null ? errorCode.errorMsg : msg, errorCode.errorCode);
    }

}
